package com.example.consumptionrecords.entity.dto;

import com.example.consumptionrecords.util.random.RandomUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * hhzr9
 * 2024 \ 03 \ 29
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class TextToImgDTO {

	/**
	 * prompt         图片描述
	 */
	private String prompt;

	/**
	 * negativePrompt 图片不想出现的内容描述
	 */
	private String negativePrompt;

	/**
	 * 图片风格 "<auto>" 默认， "<3d cartoon>" 3D卡通, "<anime>" 动画, "<oil painting>" 油画,
	 * "<watercolor>"水彩, "<sketch>" 素描, "<chinese painting>" 中国画, "<flat illustration>" 扁平插画,
	 */
	private String style = "<auto>";

	/**
	 * 分辨率 '1024*1024', '720*1280', '1280*720'
	 */
	private String size = "1024*1024";

	/**
	 * 本次请求生成图片数量 1~4
	 */
	private Integer n = 1;

	/**
	 * 种子
	 */
	private Integer seed = Integer.parseInt(RandomUtil.getRandomNum(2, false));
}
